package com.blueocean_health.care.management.domain.worktablevo;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.itextpdf.text.pdf.PdfStructTreeController.returnType;

/**
* @author lcf:
* @version 创建时间：2018年8月8日 下午4:55:31
* 存储id和名称
*/
public class NurseWorker {
	private String id;
	private String name;
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
	public static Map<String,String> convertToMap(List<NurseWorker> list){
		Map<String, String> map = new HashMap<>();
		for (NurseWorker item : list) {
			if (!map.containsKey(item.getId())) {
				map.put(item.getId(), item.getName());
			}
		}
		return map;
	}
	
}
